<?php
class Constants {
	
	public static $NUM_DB_ERROR = -3;
	public static $ID_DB_ERROR = -2;
	public static $ID_ERROR = -1;
	
	public static $SUCCESS = 0;
	public static $ERROR_DB = 1;
	public static $ERROR_EXCEPTION = 2;
	public static $ERROR_NOT_EXIT=3;
	public static $ERROR_INVALID_ARGS=4;
	
	public static $ERROR_UPLOAD_UNSOPPORT_FORMAT=5;
	public static $ERROR_UPLOAD_SIZE_TOOLARGE=6;
	
	public static $ERROR_REGISTER_EMAIL_EXISTS = 7;
	public static $ERROR_REGISTER_NICK_EXISTS = 8;
	
	public static $ERROR_LOGIN_USERNOTEXISTS = 9;
	public static $ERROR_LOGIN_PASSWORDERROR = 10;
	
	public static $ERROR_LOGOUT_NOTLOGIN = 11;
	public static $ERROR_LOGOUT_ERRORSKEY = 12;
	
	public static $ERROR_SKEY_EXPIRE = 13;
	public static $ERROR_NOTENOUGH_PRIVILEDGE = 14;
	
	
	public static $FRIEND_PAGE_SIZE = 8;
	public static $NOTE_PAGE_SIZE = 8;
	public static $COMMENT_PAGE_SIZE = 8;
	public static $TAGLIST_PAGE_SIZE = 8;
	public static $DISCOVERY_PAGE_SIZE = 8;
	public static $PRIVATE_PAGE_SIZE = 8;

	public static $MAX_NOTE_LEN = 140;
	
	public static $NOTE_TYPE_PUBLIC = 1;
	public static $NOTE_TYPE_PRIVATE = 0;
	
	public static $NOTE_SRC_MOBILE = 0;
	public static $NOTE_SRC_WEB = 1;
	
	public static $INBOX_TYPE_PUBLIC = 0;
	public static $INBOX_TYPE_REPLY = 1;
	public static $INBOX_TYPE_COMMENT = 2;
	public static $INBOX_TYPE_LIKE = 3;
	public static $INBOX_TYPE_MEMTIONED = 4;
	public static $INBOX_TYPE_PRIVATE = 5;
	
	public static $OUTBOX_TYPE_PUBLIC = 0;
	public static $OUTBOX_TYPE_REPLY = 1;
	public static $OUTBOX_TYPE_COMMENT = 2;
	public static $OUTBOX_TYPE_LIKE = 3;
	public static $OUTBOX_TYPE_PRIVATE = 5;
	public static $OUTBOX_TYPE_ALL = -1;
	
	public static $PRIVATEBOX_TYPE_SEND = 0;
	public static $PRIVATEBOX_TYPE_RECV = 1;
	public static $PRIVATEBOX_TYPE_ALL = -1;
	
	public static $ENCRYPT_KEY="567010";
	
	
	public static $DEFAULT_USER_DISPLAY_INFO = array('nick'=>'默认用户', 'avatar'=>'zz');
	public static $DEFAULT_AVATAR = 'zz.jpg';	
}